/**
 * 编辑-网元类型管理js
 */
var vm = new Vue({
	el:'#dpLTE',
	data: {
		  
		   exhibitionList:{},
		   exhibition: {
	        	exhibitionId: null,
	        	exhibitionType: null,
	        	exhibitionName: null,
	        	exhibitionAreaId: null,
	        	exhibitionNote: null,
	        
	        },
	    	exhibitionhall: {
				exhibitionHallId: null,
	    		exhibitionHallNo: null,
	    		exhibitionHallName: null,
	    		exhibitionAreaNo: null,
	    		exhibitionAreaName: null,
	    		exhibitionHallNote:null
		        }
	},
	methods : {
		
		getExhibitonList: function(){
			$.get('../../servicedata/exhibition/select?_' + $.now(), function(r){
			 
				  vm.exhibitionList = r.rows;
			});
		},
		 
		setForm: function() {
			$.SetForm({
				url: '../../servicedata/exhibitionhall/infoExhibitionhall?_' + $.now(),
		    	param: vm.exhibitionhall.exhibitionHallId,
		    	success: function(data) {
		    		vm.exhibitionhall = data;
		    	}
			});
		},
		acceptClick: function() {
			if (!$('#form').Validform()) {
		        return false;
		    }
		    $.ConfirmForm({
		    	url: '../../servicedata/exhibition/update?_' + $.now(),
		    	param: vm.exhibition,
		    	success: function(data) {
		    		 top.frames['layerMacroTree'].vm.load();
		    	}
		    });
		}
	},
	created : function() {
	   this.getExhibitonList();
	}
})
